	<form id="status_post" action="<?php echo $this->baseURL() ?>/status/status/publish/"  method="post">
	<textarea name="status" id="statusField"></textarea>
	<button id="statusSubmit" type="submit">Publish</button>
	</form>

	<?php
	//Container for showing the results of the autocomplete
	?>
	<div id="autocompleteProposal"></div>
	
	
	<?php
	//If the user is not displaying one of his/her own page we display a box
	if(!$this->authUserOwnPage && !$this->mode == 'tag'){
		if(!$this->stream['isFollowing']) {
			echo '<div class="followBox">You do not follow '.$this->stream['user']['pseudo'].' <a href="'.$this->baseURL().'/status/friendship/create/pseudo/'.$this->stream['user']['pseudo'].'/">Follow '.$this->stream['user']['pseudo'].'</a></div>';
		} else {
			echo '<div class="followBox">You follow '.$this->stream['user']['pseudo'].' <a href="'.$this->baseURL().'/status/friendship/delete/pseudo/'.$this->stream['user']['pseudo'].'/">Unfollow</a></div>';
		}
	}

	
	if($this->mode == 'search') echo '<h2>search: '.$this->titleData.'</h2>';
	if($this->mode == 'home') echo '<h2>Home</h2>';
	if($this->mode == 'public') echo '<h2>Public</h2>';		
	if($this->mode == 'mention') echo '<h2>Mentions: '.$this->titleData.'</h2>';	
	if($this->mode == 'statuses') echo '<h2>Statuses: '.$this->titleData.'</h2>';

	$statuses = @$this->stream['data'];
	if(empty($statuses)) {
		echo 'pas de status pour le moment';
	} else {
	
	?>
	<ol class="statuses" id="statusesList">
	<?php
	
	$this->javascriptData('statusListId','statusesList');
	
	foreach($statuses as $mun=> $status) {

		echo $this->partial('partialstatus.phtml', array(
			'status' => $status,
			'avatarBaseURL' => $this->avatarBaseURL,
			'userId' => $this->userId
			)
		);
	} //end foreach status
	
	?>
	</ol>
	
	<?php 
		} //end statuses available
	?>



